package cn.echo.hrm.client;


import cn.echo.hrm.dto.LoginUserDto;
import cn.echo.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "HRM-AUTH",fallbackFactory = AuthServiceClientFallbackFactory.class )
public interface AuthServiceClient {
    @PutMapping("/loginUser/userMeals") //不要写公共前缀，因为其它controller也有可能暴露服务
    AjaxResult add(@RequestBody LoginUserDto loginUserDto);

}
